/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pras.skripsi;

import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @author Pras
 */
public class ImageFactory {

    private static ImageIcon[] angka = new ImageIcon[4];
    private static ImageIcon[] bentuk = new ImageIcon[4];
    private static ImageIcon[][] option = new ImageIcon[2][6]; 

    public ImageFactory() {
        angka[0] = new ImageIcon("./src/resource/22.jpg");
        angka[1] = new ImageIcon("./src/resource/23.jpg");
        angka[2] = new ImageIcon("./src/resource/24.jpg");
        angka[3] = new ImageIcon("./src/resource/25.jpg");
        
        bentuk[0] = new ImageIcon("./src/resource/26.jpg");
        bentuk[1] = new ImageIcon("./src/resource/27.jpg");
        
        
        option[0][0] = new ImageIcon("./src/resource/options/26-normal.jpg");
        option[0][1] = new ImageIcon("./src/resource/options/26-deuteronomalia-ringan.jpg");
        option[0][2] = new ImageIcon("./src/resource/options/26-deuteronopia-deuteronomalia-parah.jpg");
        option[0][3] = new ImageIcon("./src/resource/options/26-protonomalia-ringan.jpg");
        option[0][4] = new ImageIcon("./src/resource/options/26-protonopia-protonomalia-parah.jpg");
        option[0][5] = new ImageIcon("./src/resource/options/26-total.jpg");
        
        option[1][0] = new ImageIcon("./src/resource/options/27-normal.jpg");
        option[1][1] = new ImageIcon("./src/resource/options/27-deuteronomalia-ringan.jpg");
        option[1][2] = new ImageIcon("./src/resource/options/27-deuteronopia-deuteronomalia-parah.jpg");
        option[1][3] = new ImageIcon("./src/resource/options/27-protanomalia-ringan.jpg");
        option[1][4] = new ImageIcon("./src/resource/options/27-protanopia-protanomalia-parah.jpg");
        option[1][5] = new ImageIcon("./src/resource/options/27-total.jpg");
    }

    public static ImageIcon[] getAngka() {
        return angka;
    }

    public static ImageIcon[] getBentuk() {
        return bentuk;
    }

    public static ImageIcon[][] getOption() {
        return option;
    }
    
    
    public static ImageFactory getInstance() {
        return ImageFactoryHolder.INSTANCE;
    }

    private static class ImageFactoryHolder {

        private static final ImageFactory INSTANCE = new ImageFactory();
    }
}
